<template>
  <div class="container">
    <MonacoEditor
      :height="height ? height : 400"
      :language="language ? language : 'json'"
      :editOptions="options"
      :code="value"
      @codeChange="$emit('update:value',$event.getValue())"
    />
  </div>
</template>
<script>
import MonacoEditor from "vue-monaco-editor";
export default{
  components: { MonacoEditor },
  props: ["value", "height", "language", "options"],
  setup() {
  },
};
</script>